class TapeDeck {
    boolean canRecord = false;
    public  void playTape() {
        System.out.println("tape playing");
    }
    public  void recordTape() {
        System.out.println("tape recording");
    }
}
public class TapeDeckTestDrive {
    public static void main(String[] args) {
        TapeDeck t = new TapeDeck();
        t.canRecord = true;
        t.playTape();
        if (t.canRecord == true) {
            t.recordTape();
        }
    }
}
